<?php
    include("site/scripts.php");
    include("site/header.php");
    include("site/left.php");
    include("site/right.php");
    include("site/footer.php");
    
    $xtpl_index     = new XTemplate("view/index.htm");
    $title  = "Thế Giới Sữa - Công ty sữa Việt Nam";
    
    $module = $_GET['module'];
    switch($module){
        case    'meiji'         :   $provider = "Meiji Việt Nam"; include("site/product/list.php"); break;
        case    'meadjohnson'   :   $provider = "Mead Johnson Nutrition Việt Nam"; include("site/product/list.php"); break;
        case    'nutifood'      :   $provider = "Nutifood"; include("site/product/list.php"); break;
        case    'abbott'        :   $provider = "Abbott Việt Nam"; include("site/product/list.php"); break;
        case    'dutchlady'     :   $provider = "Dutch Lady Việt Nam"; include("site/product/list.php"); break;
        case    'vinamilk'      :   $provider = "Vinamilk"; include("site/product/list.php"); break;
        case    'soft'          :   include("site/product/soft.php"); break;
    }
    
    $xtpl_index -> assign('title', $title);    
    $xtpl_index -> assign('scripts', $scripts);
    $xtpl_index -> assign('header', $header);
    $xtpl_index -> assign('left', $left);
    $xtpl_index -> assign('mid', $mid);
    $xtpl_index -> assign('right', $right);
    $xtpl_index -> assign('footer', $footer);
    $xtpl_index -> parse("INDEX");
    $xtpl_index -> out("INDEX");
?>